var express = require('express');
var router = express.Router();

/* GET users listing. */
const dataCtrl=require('../controllers/product.controller');

router.post('/', dataCtrl.create);
router.delete('/:id',dataCtrl.delete);
router.get('/:id',dataCtrl.get);
router.put('/:id',dataCtrl.update);
router.post('/list',dataCtrl.list);
router.post('/list/:parentId',dataCtrl.listid);
router.post('/listname/:name',dataCtrl.listval);
router.post('/listtype/:goodstype',dataCtrl.listtype);




router.post('/removes',dataCtrl.removes);



module.exports = router;